package test5;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YKH
 * Date: 2022-10-31
 * Time: 10:03
 */
public class Test {
    public static void main(String[] args) {
        Circle cir = new Circle();
        try {
            cir.setRadius(-2.0);
        } catch (CircleException e) {
            System.out.println("自定义异常:" + e.toString() +"");
        }
        cir.show();
    }
}
